// 基于template/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{spinalCase ctrl.codeName}}-grid-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

export class GridDataControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		const wfKey = [
			'srftaskid',
			'srftaskdefinitionkey',
			'srfprocessdefinitionkey',
			'srfprocessdefinitionid',
			'srfprocessinstanceid',
		];
		//  表格自持属性
		this.$ownKeys = [
			'sys_deploy_system',
			'id',
			'system_id',
			'display_name',
			'binding_id',
			'description',
			'update_time',
			'create_time',
			'enabled',
			'srfkey',
			'srfdataaccaction',
			'srfmajortext',
			'srfmstag',
			...wfKey,
		];
	}

	get id() {
		return this.$DO.id;
	}

	set id(value: any) {
		this.$DO.id = value;
	}
	get system_id() {
		return this.$DO.system_id;
	}

	set system_id(value: any) {
		this.$DO.system_id = value;
	}
	get display_name() {
		return this.$DO.display_name;
	}

	set display_name(value: any) {
		this.$DO.display_name = value;
	}
	get binding_id() {
		return this.$DO.binding_id;
	}

	set binding_id(value: any) {
		this.$DO.binding_id = value;
	}
	get description() {
		return this.$DO.description;
	}

	set description(value: any) {
		this.$DO.description = value;
	}
	get update_time() {
		return this.$DO.update_time;
	}

	set update_time(value: any) {
		this.$DO.update_time = value;
	}
	get create_time() {
		return this.$DO.create_time;
	}

	set create_time(value: any) {
		this.$DO.create_time = value;
	}
	get enabled() {
		return this.$DO.enabled;
	}

	set enabled(value: any) {
		this.$DO.enabled = value;
	}
	get srfkey() {
		return this.$DO.id;
	}

	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfdataaccaction() {
		return this.$DO.id;
	}

	set srfdataaccaction(value: any) {
		this.$DO.id = value;
	}
	get srfmajortext() {
		return this.$DO.display_name;
	}

	set srfmajortext(value: any) {
		this.$DO.display_name = value;
	}

	set sys_deploy_system(value: any) {
		this.$DO.id = value;
	}
	get sys_deploy_system() {
		return this.$DO.id;
	}

	get srftaskid() {
		return this.$DO.srftaskid;
	}

	get srftaskdefinitionkey() {
		return this.$DO.srftaskdefinitionkey;
	}

	get srfprocessdefinitionkey() {
		return this.$DO.srfprocessdefinitionkey;
	}

	get srfprocessdefinitionid() {
		return this.$DO.srfprocessdefinitionid;
	}

	get srfprocessinstanceid() {
		return this.$DO.srfprocessinstanceid;
	}
}

export const GridControlVO = [
	{ name: 'GridControlVO', controlVO: GridDataControlVO },
];
